import {
  _decorator,
  Component,
  Node,
  Sprite,
  UITransform,
  Animation,
  AnimationClip,
  animation,
  Vec3,
  SpriteFrame,
  debug,
} from 'cc'
import { TILE_HEIGHT, TILE_WIDTH } from '../Scripts/Tile/TileManage'
import ResourceManage from '../Runtime/resourceManage'
import {
  CONTROLLER_ENUM,
  DIRECTION_ENUM,
  DIRECTION_ORDER_ENUM,
  ENTITY_STATE_ENUM,
  ENTITY_TYPE_ENUM,
  EVENT_ENUM,
  PARAMS_NAME_ENUM,
} from '../Enums'
import EventManage from '../Runtime/eventManage'
import { IronSkeletonStateMachine } from './IronSkeletonStateMachine'
import { EntityManage } from '../Base/EntityManage'
import DataManage from '../Runtime/dataManage'
import { EnemyManage } from '../Base/EnemyManage'
const { ccclass, property } = _decorator

@ccclass('IronSkeletonManage')
export class IronSkeletonManage extends EnemyManage {
  async init(params) {
    // 初始化人物动画状态机
    this.fsm = this.addComponent(IronSkeletonStateMachine)
    await this.fsm.init()
    super.init(params)
  }
}
